package com.fqgj.sentry.biz.store.system;

import com.fqgj.sentry.api.domain.ScoreCard;
import com.fqgj.sentry.biz.store.es.data.Grade;

public class ScoreCardToEsGradeConverter {
    public static Grade convert(ScoreCard scoreCard) {
        Grade grade = new Grade();
        grade.setName(scoreCard.getColumnName());
        grade.setValue(scoreCard.getFinalScore());
        return grade;
    }
}
